package Design_patterns.creator_mode.prototype.demo3;

/**
 * @description: 三好
 **/

public class Citation implements Cloneable {
    //三好学生Student
    private Student student;

    @Override
    protected Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }

    public void show() {
        System.out.println("同学：" + student.getName() + "在2020学年第一学期中表现优秀，被评为三好学生，特发此状");
    }


    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }
}
